import Vue from 'vue'
import Router from 'vue-router'
import root from '@/components/root'
import member from '@/components/memeber'
import search from '@/components/Search'
import home from '@/components/Home'
import car from '@/components/Car'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      path: '/root',
      component: root,
      children:[
        {
          path:"/home",
          component:home

        },
        {
          path:"/member",
          component:member

        },
        {
          path:"/car",
          component:car

        },
        {
          path:"/search",
          component:search

        }
      ]
    }


  ],
  linkActiveClass:"mui-active"
})
